package com.example.moduletwo.adapter.delegate;

import android.text.TextUtils;
import android.widget.TextView;

import com.example.moduletwo.R;
import com.example.mvp.delegate.BaseAdapterDelegate;

/**
 * 测试适配器视图改变控制类
 * Created by sun.li on 2018/6/6.
 *
 * @author sun.li
 */

public class TestTwoAdapterDelegate2 extends BaseAdapterDelegate{

    @Override
    protected int initLayoutRes() {
        return R.layout.adapter_test_two_item_2;
    }

    @Override
    public int getOptionsMenuId() {
        return 0;
    }

    @Override
    public void initWidget() {
        setText("item_test");
    }

    @Override
    public void onDestroy() {

    }

    public void setText(String str){
        if(!TextUtils.isEmpty(str)){
            TextView textView1 = getView(R.id.tv_ati2_text);
            textView1.setText(str);
        }
    }
}
